<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Genotypes.html">
<link rel="next" href="DynMat.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="DistMat" rel="Chapter" href="DistMat.html">
<link title="Genotype" rel="Chapter" href="Genotype.html">
<link title="Genotypes" rel="Chapter" href="Genotypes.html">
<link title="GenoMat" rel="Chapter" href="GenoMat.html">
<link title="DynMat" rel="Chapter" href="DynMat.html">
<link title="Dendogram" rel="Chapter" href="Dendogram.html">
<link title="Tree" rel="Chapter" href="Tree.html">
<link title="Clustering" rel="Chapter" href="Clustering.html">
<link title="BarnesHut" rel="Chapter" href="BarnesHut.html"><link title="Integer distance matrices" rel="Section" href="#4_Integerdistancematrices">
<link title="Float distance matrices" rel="Section" href="#4_Floatdistancematrices">
<link title="Other functions" rel="Section" href="#4_Otherfunctions">
<title>GenoMat</title>
</head>
<body>
<div class="navbar"><a href="Genotypes.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="DynMat.html">Next</a>
</div>
<center><h1>Module <a href="type_GenoMat.html">GenoMat</a></h1></center>
<br>
<pre><span class="keyword">module</span> GenoMat: <code class="code">sig</code> <a href="GenoMat.html">..</a> <code class="code">end</code></pre>Genetic distance matrices<br>
<hr width="100%">
<br>
Functions postfixed with an "F" deal with float matrices<br>
<br>
<a name="4_Integerdistancematrices"></a>
<h4>Integer distance matrices</h4><br>
<pre><span class="keyword">val</span> <a name="VALcreate"></a>create : <code class="type"><a href="Genotypes.html#TYPEt">Genotypes.t</a> -> int array array</code></pre><div class="info">
<code class="code">create collec</code><br>
<b>Returns</b> a distance matrix inferred from a collection of genotypes<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget"></a>get : <code class="type">int array array -> int -> int -> int</code></pre><div class="info">
<code class="code">get matrix i j</code><br>
<b>Returns</b> genetic distance between the genotypes of index <code class="code">i</code> and <code class="code">j</code><br>
</div>
<pre><span class="keyword">val</span> <a name="VALempty"></a>empty : <code class="type">int -> int array array</code></pre><div class="info">
<code class="code">empty dim</code><br>
<b>Returns</b> a distance matrix of size <code class="code">dim</code> filled with 0s<br>
</div>
<br>
<a name="4_Floatdistancematrices"></a>
<h4>Float distance matrices</h4><br>
<pre><span class="keyword">val</span> <a name="VALcreateF"></a>createF : <code class="type"><a href="Genotypes.html#TYPEt">Genotypes.t</a> -> float array array</code></pre><div class="info">
<code class="code">createF collec</code>
	*<br>
<b>Returns</b> a float distance matrix inferred
	from a collection of genotypes<br>
</div>
<pre><span class="keyword">val</span> <a name="VALemptyF"></a>emptyF : <code class="type">int -> float array array</code></pre><div class="info">
<code class="code">emptyF dim</code><br>
<b>Returns</b> a distance matrix of size <code class="code">dim</code> filled with 0.0<br>
</div>
<pre><span class="keyword">val</span> <a name="VALgetF"></a>getF : <code class="type">float array array -> int -> int -> float</code></pre><div class="info">
<code class="code">getF matrix i j</code><br>
<b>Returns</b> floating genetic distance between the genotypes of index <code class="code">i</code> and <code class="code">j</code><br>
</div>
<pre><span class="keyword">val</span> <a name="VALtoFloat"></a>toFloat : <code class="type">int array array -> float array array</code></pre><div class="info">
<code class="code">toFloat m</code> maps <code class="code">float_of_int</code> on <code class="code">m</code><br>
</div>
<pre><span class="keyword">val</span> <a name="VALcreateP"></a>createP : <code class="type"><a href="Genotypes.html#TYPEt">Genotypes.t</a> -> float array array</code></pre><div class="info">
<code class="code">createP (genos, gsize)</code><br>
<b>Returns</b> a distance matrix filled with difference percentages<br>
</div>
<br>
<a name="4_Otherfunctions"></a>
<h4>Other functions</h4><br>
<pre><span class="keyword">val</span> <a name="VALprint"></a>print : <code class="type">int array array -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALprintF"></a>printF : <code class="type">float array array -> unit</code></pre></body></html>